<template>
  <div class="form-login">
    <el-form :model="form">
      <h1 class="-enter-x">注册</h1>
      <el-form-item class="-enter-x">
        <el-input
          v-model="form.account"
          class="login-input"
          placeholder="账号"
        />
      </el-form-item>
      <el-form-item class="-enter-x">
        <el-input
          v-model="form.phone"
          class="login-input"
          type="password"
          placeholder="手机号码"
          show-password
        />
      </el-form-item>
      <el-form-item class="-enter-x">
        <el-checkbox v-model="remember">我同意XXX隐私政策</el-checkbox>
      </el-form-item>
      <div class="-enter-x">
        <el-form-item>
          <el-button
            class="flex-center w100 login-button"
            size="large"
            type="primary"
            >注册</el-button
          >
        </el-form-item>
        <el-form-item class="-enter-x">
          <el-button
            class="flex-center w100 login-button"
            size="large"
            type="default"
            plain
            @click="emit('back')"
            >返回</el-button
          >
        </el-form-item>
      </div>
    </el-form>
  </div>
</template>

<script setup lang="ts">
import { reactive, ref } from "vue";

const emit = defineEmits({
  back: null,
});
const remember = ref(false);
const form = reactive({
  account: "",
  phone: "",
  code: "",
});
</script>

<style scoped lang="less">
.form-login {
  width: 404px;
  h1 {
    margin-bottom: 12px;
  }
  ::v-deep(.login-input) {
    .el-input__inner {
      padding-left: 11px;
    }
  }
  .login-button {
    font-size: 18px;
  }
}
</style>
